package model.juliStaff.arboles;
/*

    This file is part of Logica-Logike.

    Logica-Logike is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation version 3 of the License.

    Logica-Logike is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with Logica-Logike.  If not, see <http://www.gnu.org/licenses/>.

 */
/**
 * Date: Sep 5, 2009
 * Time: 8:25:53 PM
 *
 * @author Maria Julia Racca;
 */

public class DoubleNode<E> {

    private DoubleNode<E> left;
    private DoubleNode<E> right;
    private E value;

    public DoubleNode() {

        this.left = null;
        this.right = null;
        this.value = null;
    }

    public DoubleNode(E value) {

        this.left = null;
        this.right = null;
        this.value = value;
    }

    public DoubleNode(DoubleNode<E> left, DoubleNode<E> right, E value) {

        this.left = left;
        this.right = right;
        this.value = value;
    }

    public E getValue() {
        return value;
    }

    public void setValue(E value) {
        this.value = value;
    }

    public DoubleNode<E> getLeft() {
        return left;
    }

    public DoubleNode<E> getRight() {
        return right;
    }

}
